#ifndef _PARSING_H_
#define _PARSING_H_

#define MAX_HEADER_LINE_LENGTH 1024
//#define MAX_HTTP_HEADER_LINE_LENGTH 1024
#define MAX_VARIABLES 16

struct fileupload_http_header_t {
  char name[MAX_HEADER_LINE_LENGTH];
  char file_name[MAX_HEADER_LINE_LENGTH];
  char content_type[MAX_HEADER_LINE_LENGTH];
  char mime_separator[MAX_HEADER_LINE_LENGTH];
};

void http_header_read_line(char * buffer);
void parse_content_disposition(char * line, struct fileupload_http_header_t * header);
void http_header_parse_line(char * line, struct fileupload_http_header_t * header) ;
void http_header_parse(struct fileupload_http_header_t * header);
void http_header_dump(struct fileupload_http_header_t * header);

#endif
